package com.bitcola.entity;


import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "ag_admin_v1.balance_change")
public class BalanceChange {

    String id;
    @Column(name = "user_id")
    String userId;
    @Column(name = "amount")

    BigDecimal amount;
    @Column(name = "description")

    String description;
    @Column(name = "type")

    String type ;
    @Column(name = "create_time")

    Date createTime;

    @Column(name = "source")

    String source;

    @Column(name = "coin_code")
    String coinCode;

    @Transient
    BigDecimal number;


    public BigDecimal getNumber()
    {
        return amount;
    }

    @Transient
    Date time;

    public Date getTime()
    {
        return createTime;
    }


}
